package com.dxl.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.*;
import java.time.LocalDateTime;
/**
 * <b> Groups实体类
 * </b><br><br><i>Description</i> :
 * <br>Date: 2019-10-12    <br>Author : dxl
 */
public class Groups implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value="id", type= IdType.AUTO)
    private Integer id;

    /**
     * 组名称
     */
    @TableField("group_name")
    private String groupName;

    /**
     * 父节点ID
     */
    @TableField("p_id")
    private Integer pId;

    /**
     * 是否为父节点
     */
    @TableField("is_parent")
    private String isParent;

    /**
     * 状态
     */
    @TableField("status")
    private Integer status;

    /**
     * 备注
     */
    @TableField("note")
    private String note;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 同级排序
     */
    @TableField("order_num")
    private Integer orderNum;

    /**
     * 逻辑删除
     */
    @TableField("is_del")
    private Integer isDel;

    /**
     * 乐观锁
     */
    @TableField("version")
    private Integer version;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    public String getIsParent() {
        return isParent;
    }

    public void setIsParent(String isParent) {
        this.isParent = isParent;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "Groups{" +
                ", id=" + id +
                ", groupName=" + groupName +
                ", pId=" + pId +
                ", isParent=" + isParent +
                ", status=" + status +
                ", note=" + note +
                ", createTime=" + createTime +
                ", orderNum=" + orderNum +
                ", isDel=" + isDel +
                ", version=" + version +
                "}";
    }
}
